import { Context } from "koa";
import Router from "koa-router";
import {
  AddContentService,
  DeleteContentService,
  GetContentService,
  UpdateContentService,
} from "../service/content-service";

const ContentController = new Router();
// 新增内容
ContentController.get("/AddContent", AddContentService);

// 删除内容
ContentController.get("/DeleteContent", DeleteContentService);

// 更新内容
ContentController.get("/UpdateContent", UpdateContentService);

// 获取内容
ContentController.get("/GetContent", GetContentService);

export default ContentController;
